<%--
  Created by IntelliJ IDEA.
  User: 林淮
  Date: 2024/12/21
  Time: 下午10:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<link rel="stylesheet" href="statics/css/editTraveler.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-3.7.1.js"></script>
<body>
<div class="traveler-form-container">
    <h2>编辑常用旅客</h2>
    <form id="editTravelerForm">
        <input type="hidden" id="travelerId" name="id">

        <div class="form-group">
            <label>中文姓名</label>
            <input type="text" id="chineseName" name="chineseName" required>
        </div>
        <div class="form-group">
            <label>英文姓</label>
            <input type="text" id="surname" name="surname">
        </div>
        <div class="form-group">
            <label>英文名</label>
            <input type="text" id="givenName" name="givenName">
        </div>
        <div class="form-group">
            <label>性别</label>
            <select id="gender" name="gender" required>
                <option value="男">男</option>
                <option value="女">女</option>
            </select>
        </div>
        <div class="form-group">
            <label>国籍</label>
            <input type="text" id="nationality" name="nationality" required>
        </div>
        <div class="form-group">
            <label>手机号码</label>
            <input type="tel" id="phone" name="phone" required>
        </div>
        <div class="form-group documents-section">
            <label>证件信息</label>
            <div id="documentsList">
                <!-- 证件信息将通过JS动态添加 -->
            </div>
            <button type="button" class="add-document-btn">+ 添加证件</button>
        </div>
        <div class="form-actions">
            <button type="submit" class="save-btn">保存</button>
            <button type="button" class="cancel-btn" onclick="history.back()">取消</button>
        </div>
    </form>
</div>
</body>
<script src="statics/js/editTraveler.js"></script>
</html>
